Automattic\WooCommerce\Admin\API\Reports\Stock\Controller S

Total Complexity 40
Dependencies 3
Dependents 0
Total lines 569
Lines of code 384
Logical lines of code 143
Comment lines 129
Methods 15
Properties 3

Methods 15

Method Rating Maintainability Complexity Lines of code
prepare_reports_query()
S
50 6 27
get_items()
S
46 5 37
get_collection_params()
S
38 1 92
add_wp_query_orderby()
S
54 5 20
add_wp_query_filter()
S
51 3 32
prepare_links()
S
53 3 28
get_item_schema()
S
44 1 53
prepare_item_for_response()
S
53 3 21
add_wp_query_join()
S
61 3 12
prepare_item_for_export()
S
58 2 17
get_products()
S
57 2 16
append_product_sorting_table_join()
S
67 2 7
add_wp_query_group_by()
S
69 2 7
get_export_columns()
S
62 1 12
__construct()
S
80 1 3